package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * <p>
 * 主贴表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("INVITATION_MAIN")
@ApiModel(value="InvitationMain对象", description="主贴表")
@KeySequence("SEQ_INVITATION_MAIN")
@NoArgsConstructor
@AllArgsConstructor
public class InvitationMain implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主帖主键id")
    @TableId(value = "MAIN_ID" , type = IdType.INPUT)
    private Integer mainId;

    @ApiModelProperty(value = "主帖所属帖子id")
    @TableField("INVITATION_ID")
    private Integer invitationId;

    @ApiModelProperty(value = "主帖发布者社区id")
    @TableField("COMMUNITY_ID")
    private Integer communityId;

    @ApiModelProperty(value = "主帖所属楼层")
    @TableField("FLOOR")
    private Integer floor;

    @ApiModelProperty(value = "主帖内容")
    @TableField("MAIN_CONTENT")
    private Blob mainContent;

    @ApiModelProperty(value = "主帖创建时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "主帖支持者")
    @TableField("MAIN_LIKE")
    private Integer mainLike;

    @ApiModelProperty(value = "主帖不支持者")
    @TableField("MAIN_DISLIKE")
    private Integer mainDislike;

    @ApiModelProperty(value = "主帖软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
